<!DOCTYPE html>
<html>
<body>
<div id="test" contenteditable>hello</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>

Markup.description("This tests ensures FormatBlock preserves the typing style.");

var test = document.getElementById('test');
window.getSelection().collapse(test, test.childNodes.length);

document.execCommand('Bold', false, null);
document.execCommand('FormatBlock', false, '');
document.execCommand('InsertText', false, ' world');

Markup.dump(test, '"world" should be bolded');

</script>
</body>
</html>
